package com.yjs.app.trade.service.service.sys.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yjs.app.trade.core.base.mybatis.dbutil.DynamicSwitchDataSource;
import com.yjs.app.trade.service.mapper.sys.AdvertisingMapper;
import com.yjs.app.trade.service.service.sys.AdvertisingService;

@Service("advertisingService")
@DynamicSwitchDataSource(dataSource = "app")
public class AdvertisingServiceImpl implements AdvertisingService {

	@Autowired
	AdvertisingMapper advertisingMapper;

	@Override
	public Map<String, Object> getStartAd(Integer adType) {
		Map<String, Object> startAd = advertisingMapper.getStartAd(adType);
		return startAd;
	}

	@Override
	public List<Map<String, Object>> getBannerAd(Integer adType) {
		List<Map<String, Object>> bannerAd = advertisingMapper.getBannerAd(adType);
		return bannerAd;
	}

}
